package iedcyt.acute.controller.listeners.DatosLevel;

import iedcyt.acute.model.DatosLevelModel;
import iedcyt.acute.view.DatosLevelView;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;

public class DatosLevelSelectionListener implements Listener {

	private DatosLevelModel _model;
	private DatosLevelView _view;
	
	public DatosLevelSelectionListener(DatosLevelView _view2, DatosLevelModel _model2) {
		this._model = _model2;
		this._view = _view2;
	}
	
	@Override
	public void handleEvent(Event event) {
		_model.setSelected_Jnl_Abbrev_datos_level(_view.getSelectedDatosLevel());
		_view.loadCandidates(_model.getCandidates());
		
	}
}
